
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Permission 分页列表
*/
export function getPermissionPagination(data: any) {
  return axios.get(`${context}/permission/pagination`, { params: data });
}


/**
 * 获取 Permission 所有数据
*/
export function getPermissionAllList(data: any) {
  return axios.get(`${context}/permission/all`, { params: data });
}


/**
 * 获取 Permission 详情
*/
export function getPermissionDetailById(id: any) {
  return axios.get(`${context}/permission/${id}`, { params:{id} });
}


/**
 * 新增 Permission
*/
export function addPermission(data: any) {
  return axios.post(`${context}/permission`, data);
}

/**
 * 修改 Permission
*/
export function updatePermission(data: any) {
  return axios.put(`${context}/permission`, data);
}

/**
 * 删除 Permission
*/
export function batchRemovePermission(data: any) {
  return axios.post(`${context}/permission/batchRemove`, data);
}

    